home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
library
/
rqtlsusr.lha
/
ReqTools
/
RexxReqTools
/
Examples
/
TTXARexx.lha
/
SaveFileAs.ttx
< prev
next >
Wrap
Text File
|
1993-10-21
|
513b
|
25 lines
/* SaveFileAs.ttx 1.1 (27.07.93) */
OPTIONS RESULTS
GetFilePath
DirName = RESULT
Index = LastPos( '/', DirName )
IF Index = 0 THEN
Index = Index( DirName, ":" )
IF Index ~= 0 THEN DO
FileName = SubStr( DirName, Index + 1 )
DirName = Left( DirName, Index )
END
FileName = rtFileRequest( DirName, FileName, "Select file to save", "_Save", "RTFI_Flags=FREQF_PatGad|FREQF_Save RT_PubScrName=TURBOTEXT" )
IF rtResult = 1 THEN DO
SaveFileAs NAME FileName
SetFilePath FileName
END
CALL rtFreeFileBuffer